﻿/*------------------------------------------------
// File Description: ViaSiteConfig DataBase Entity
// Author:			 汪亮
// Create Time:		 2020-05-04 20:24:04
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 过站配置
    /// </summary>
    [Table(nameof(ViaSiteConfig))]
    public class ViaSiteConfig : BaseEntity
    {
        private string _orderNo = string.Empty;
        private string _workOrderNo = string.Empty;
        private string _config = string.Empty;

        #region Public Property

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// 工单号
        ///</Summary>
        public string WorkOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_workOrderNo) ? string.Empty : _workOrderNo; }
            set { _workOrderNo = value; }
        }

        ///<Summary>
        /// 配置JSON
        ///</Summary>
        public string Config
        {
            get { return string.IsNullOrWhiteSpace(_config) ? string.Empty : _config; }
            set { _config = value; }
        }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 过站配置
        /// </summary>
        public virtual DbSet<ViaSiteConfig> ViaSiteConfigs { get; set; }
    }
}